package com.example.demozy.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.sql.Timestamp;

/**
 * 参赛用户
 * @author 王成龙
 */
public class Participant {
    // **************** 公开变量

    // **************** 私有变量

    /**
     * 挑战赛id
     */
    private int challengeId;

    /**
     * 用户id
     */
    private int userId;

    /**
     * 参赛状态
     */
    private int entryStat;

    /**
     * 起始资金
     */
    private double startingFunds;

    /**
     * 当前资金
     */
    private double currentFunds;

    /**
     * 收益率
     */
    private double yield;

    /**
     * 条件单id
     */
    private String conditionSheetId;

    /**
     * 创建时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Timestamp updateTime;

    // **************** 继承方法

    // **************** 公开方法

    public int getChallengeId() {
        return challengeId;
    }

    public void setChallengeId(int challengeId) {
        this.challengeId = challengeId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getEntryStat() {
        return entryStat;
    }

    public void setEntryStat(int entryStat) {
        this.entryStat = entryStat;
    }

    public double getStartingFunds() {
        return startingFunds;
    }

    public void setStartingFunds(double startingFunds) {
        this.startingFunds = startingFunds;
    }

    public double getCurrentFunds() {
        return currentFunds;
    }

    public void setCurrentFunds(double currentFunds) {
        this.currentFunds = currentFunds;
    }

    public double getYield() {
        return yield;
    }

    public void setYield(double yield) {
        this.yield = yield;
    }

    public String getConditionSheetId() {
        return conditionSheetId;
    }

    public void setConditionSheetId(String conditionSheetId) {
        this.conditionSheetId = conditionSheetId;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    // **************** 私有方法

}
